package com.ruleengine.parser.impl;

import org.dom4j.Element;

import com.ruleengine.parser.ITaskContants;
import com.ruleengine.parser.exception.RuleEngineParserException;
import com.ruleengine.task.impl.InvokerTask;

public class InvokerTaskParser extends BaseTaskParser<InvokerTask> {

    public InvokerTask parseTask(Element ele, InvokerTask task)
            throws RuleEngineParserException {
        //调用的服务名
        String target = ele.attributeValue(ITaskContants.ATTRI_TAG_TARGET).trim();
        task.setTarget(target);
        
        return task;
    }


}
